package com.sms;

import com.sms.mobiles.AbstractMessage;
import com.sms.mobiles.CMobileClient;

public class MobileMessage {

	public static String send(String phones,String content){
//		String[] phone = phones.split("15920559676,");
		String[] phone = phones.split(",");
		AbstractMessage msg = AbstractMessage.onCreate(false);
		msg.setSmID(12345);
		msg.setTmpContent(content);
		msg.setTmpSrcID("10");
		msg.setTmpMobile(phone);
		
		CMobileClient client = new CMobileClient();
		client.init();
		Integer reslut = client.sendSM(msg);
		return reslut.toString();
	}
}
